package entity

import (
	"gorm.io/gorm"
	"time"
)

type SysPermissionRole struct {
	PermId    uint32 `gorm:"perm_id"    json:"perm_id"` // 权限ID
	RoleId    uint32 `gorm:"role_id"    json:"role_id"` // 角色ID
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

//设置表名
func (e *SysPermissionRole) TableName() string {
	return "sys_permission_roles"
}
